window.onbeforeunload = function(e) {
    if (confirm("是否关闭")) {
        e = e || window.event;
        if (e) {
            e.returnValue = '关闭提示'
        }
        return true
    } else {
        return false
    }
};
var finnally = $("#finnallyTime").val();
var str = finnally.substring(11, 19);
checkDate = function() {
    var time = $("#ids").html();
    $("#finnallyTime").append('<option selected="selected" value="' + time + ' ' + str + '">' + time + ' ' + str + '</option>');
    if ($("#finnallyTimeValue").val() != "") {
        $("#finnallyTime option[value='" + $('#finnallyTimeValue').val() + "']").remove()
    }
    $("#finnallyTimeValue").val(time + ' ' + str)
};